<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActivityType extends Model
{
    protected $table = 'activity_type';
    public $timestamps = false;
    protected $fillable = [
        'name',
        'type',
        'status',
        'start_at',
        'end_at',
        'photo',
        'updated_at',
    ];

    //状态
    const STATUS_TRUE = 1;
    const STATUS_FAIL = 2;
    //规则类型
    const TYPE_ONE = 1;//后台
    const TYPE_TWO = 2;//注册

    const ACTIVITY_STATUS = [
        self::STATUS_TRUE => '启用',
        self::STATUS_FAIL => '停用',
    ];
}
